<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>NaN</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">NaN()</font></b></p>
<p><b>语法</b></p><blockquote>

Result.f = <font color="#3A3966"><b>NaN</b></font>()</blockquote>

</blockquote>
<b>概要</b><br><blockquote>



Returns the special floating-point value representing 'Not a Number'. This value is returned from 
invalid calculations such as calculating the <a href="sqr.html">square root</a> of a negative number. 

 

</blockquote><p><b>参数</b></p><blockquote>
无.


</blockquote><p><b>返回值</b></p><blockquote>



Returns the value representing NaN. The result is a float or double value depending on whether 
it is assigned to a <a href="../reference/variables.html">float or double</a> variable. 

 

</blockquote><p><b>备注</b></p><blockquote>



NaN is a special value. Using NaN in any calculation with other values will again return the value NaN. 
The <a href="isnan.html">IsNaN()</a> function can be used to check whether a variable represents the value NaN. 

 

</blockquote><p><b>示例</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  <b><font color="#3A3966">Debug</font></b> <font color="#3A3966">IsNaN</font>(<font color="#3A3966">NaN</font>() * 5 + 2) <font color="#3A3966">; will display 1</font>
</font></pre>

</blockquote><p><b>参阅</b></p><blockquote>

<a href="isnan.html">IsNaN()</a>, <a href="infinity.html">Infinity()</a> 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=mod.html>Mod()</a> - <a href="index.html">Math Index</a> - <a href="pow.html">Pow()</a> -&gt;<br><br>

</body></html>